// Copyright (C) 1953-2022 NUDT
// Verilog module name - command_parse_and_encapsulate_inex 
// Version: V4.1.0.20221213
// Created:
// Created:
//         by - fenglin 
////////////////////////////////////////////////////////////////////////////
// Description:
//         
///////////////////////////////////////////////////////////////////////////

`timescale 1ns / 1ps

module command_parse_and_encapsulate_inex
(
       i_clk,
       i_rst_n,
       
       iv_command,
	   i_command_wr,    
       
       ov_hcp_int_command,
	   o_hcp_int_command_wr,
	   ov_hcp_ext_command  ,
	   o_hcp_ext_command_wr,	   			   
       
       iv_hcp_int_command  ,  
	   i_hcp_int_command_wr,   
       iv_hcp_ext_command  ,   
       i_hcp_ext_command_wr, 

       ov_command_ack,
       o_command_ack_wr
);
// I/O
// i_clk & rst
input                  i_clk;
input                  i_rst_n;
       
//nmac data
input      [65:0]      iv_command;               
input                  i_command_wr;             

output     [65:0]	   ov_hcp_int_command;
output    	           o_hcp_int_command_wr;          
output     [65:0]	   ov_hcp_ext_command  ;
output    	           o_hcp_ext_command_wr;

input      [65:0]      iv_hcp_int_command;            
input                  i_hcp_int_command_wr;           
input      [65:0]      iv_hcp_ext_command;            
input                  i_hcp_ext_command_wr;  

output     [65:0]	   ov_command_ack;
output     	           o_command_ack_wr;
command_parse_inex command_parse_inex_inst
(
       .i_clk                       (i_clk                ),
       .i_rst_n                     (i_rst_n              ),
                                                          
       .iv_command                  (iv_command           ),
	   .i_command_wr                (i_command_wr         ),    

       .ov_hcp_int_command          (ov_hcp_int_command   ),
	   .o_hcp_int_command_wr        (o_hcp_int_command_wr ),

       .ov_hcp_ext_command          (ov_hcp_ext_command   ),
       .o_hcp_ext_command_wr        (o_hcp_ext_command_wr )
);
command_encapsulate_inex command_encapsulate_inex_inst
(
       .i_clk                           (i_clk                      ),
       .i_rst_n                         (i_rst_n                    ),

       .iv_hcp_int_command              (iv_hcp_int_command         ),  
	   .i_hcp_int_command_wr            (i_hcp_int_command_wr       ),   
       .iv_hcp_ext_command              (iv_hcp_ext_command         ),   
       .i_hcp_ext_command_wr            (i_hcp_ext_command_wr       ),    
	   
       .ov_command_ack                  (ov_command_ack             ),
       .o_command_ack_wr                (o_command_ack_wr           )
);    
endmodule
    